Skip to content

Conversation

lpelypenko
Copy link

The fix for the error that will be produced in user setup:

node -v
v18.20.1

Error that will be produced form react-scripts library:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /tmp/workspace/node_modules/postcss-safe-parser/node_modules/postcss/package.json

The error is fixed by upgrading https://www.npmjs.com/package/react-scripts to 5.0.1 version.

@npanis
Copy link

npanis commented Jun 12, 2024

Thank you for sharing this fix @lpelypenko! I hope they can update the package.json to fix this issue.

I also have the Cannot find module ‘ajv/dist/compile/codegen’ issue when I try to run npm start... it got fixed when I installed npm install ajv --save-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants